<template>
  <div>
  <date-picker-input :value="value" @input="onInput"></date-picker-input>
  </div>
</template>

<script>
import DatePicker from 'open-vue-components/dist/components/form/input/DatePicker'
import tools from 'utils/tools'
export default {
  props:['value','config'],
  methods:{
    onInput(val){
      this.$emit('input', {value:tools.dateFormat(val, 'yyyy-MM-dd')});
    }
  },
  components:{
    'date-picker-input':DatePicker
  }
};
</script>

<style>

</style>